/*************************************************************************
 *                                                                       *
 * This file is part of the FreeMAPs distribution.  For full copyright   *
 * information, see COPYRIGHT and COPYING.LESSER.                        *
 *                                                                       *
 * Author:           sqbang                                              *
 * Email:            sqbang@ustc.edu                                     *
 * Date:             2013.12.10                                          *
 *                                                                       *
 *************************************************************************/

namespace FreeMAPs
{

inline bool
Database::key_accessed(
    const std::string& key)
{
    KeyData* keydata = find_key_data(key);
    return (keydata ? keydata->d_accessed : false);
}


inline void
Database::print_unused_keys(
    std::ostream& os) const
{
    this->print_database (os, 0, PRINT_UNUSED);
}


inline void
Database::print_default_keys(
    std::ostream& os) const
{
    this->print_database (os, 0, PRINT_DEFAULT);
}

}
